package org.jeecg.modules.demo.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: MasterPlan
 * @Author: jeecg-boot
 * @Date:   2022-06-28
 * @Version: V1.0
 */
@Data
@TableName("mp_masterplan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mp_masterplan对象", description="MasterPlan")
public class MpMasterplan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**Period*/
	@Excel(name = "Status", width = 15)
    @ApiModelProperty(value = "Status")
    private java.lang.String statu;
	/**Period*/
	@Excel(name = "Period", width = 15)
    @ApiModelProperty(value = "Period")
    private java.lang.String version;
	/**Division*/
	@Excel(name = "Division", width = 15)
    @ApiModelProperty(value = "Division")
    private java.lang.String division;
	/**Detailed Division*/
	@Excel(name = "Detailed Division", width = 15)
    @ApiModelProperty(value = "Detailed Division")
    private java.lang.String detailedDivision;
	/**Product*/
	@Excel(name = "Product", width = 15)
    @ApiModelProperty(value = "Product")
    private java.lang.String product;
	/**Wave*/
	@Excel(name = "Wave", width = 15)
    @ApiModelProperty(value = "Wave")
    private java.lang.String wave;
	/**Campaign Name*/
	@Excel(name = "Campaign Name", width = 15)
    @ApiModelProperty(value = "Campaign Name")
    private java.lang.String campaignName;
	/**Buying Type*/
	@Excel(name = "Buying Type", width = 15)
    @ApiModelProperty(value = "Buying Type")
    private java.lang.String buyingType;
	/**MediaType*/
	@Excel(name = "MediaType", width = 15)
    @ApiModelProperty(value = "MediaType")
    private java.lang.String mediaType;
	/**Media*/
	@Excel(name = "Media", width = 15)
    @ApiModelProperty(value = "Media")
    private java.lang.String media;
	/**MediaGroup*/
	@Excel(name = "MediaGroup", width = 15)
    @ApiModelProperty(value = "MediaGroup")
    private java.lang.String mediaGroup;
	/**Market Region*/
	@Excel(name = "Market Region", width = 15)
    @ApiModelProperty(value = "Market Region")
    private java.lang.String marketRegion;
	/**DID回传*/
	@Excel(name = "定向OMG", width = 15)
    @ApiModelProperty(value = "DID回传")
    private java.lang.String forOmg;
	/**Technical Cost*/
	@Excel(name = "Technical Cost", width = 15)
    @ApiModelProperty(value = "Technical Cost")
    private java.math.BigDecimal techCost;
	/**Media Spending*/
	@Excel(name = "Media Spending", width = 15)
    @ApiModelProperty(value = "Media Spending")
    private java.math.BigDecimal mediaSpending;
	/**AC*/
	@Excel(name = "AC", width = 15)
    @ApiModelProperty(value = "AC")
    private java.math.BigDecimal ac;
	/**revision*/
	@Excel(name = "revision", width = 15)
    @ApiModelProperty(value = "revision")
    private java.lang.Integer revision;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "Update User")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "Update Time")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    private java.lang.String batchid;

    @TableField(exist=false)
    private transient String dimKey;

    public String getDimKey(){
        if(dimKey ==null){
            dimKey= new StringBuilder().append(version).append("#").append(detailedDivision).append("#").append(campaignName).append("#").append(buyingType).append("#").append(media).append("#").append(marketRegion).append("#").append(statu).toString();
        }
        return dimKey;
    }

}
